{include file="public_tpl/head"/}
<title>友链管理 - 友链列表 - {$cfg_website}</title>
<meta name="keywords" content="{$cfg_keywords?:''}">
<meta name="description" content="{$cfg_description?:''}">
</head>
<body>
<!--面包屑-->
<nav class="breadcrumb">
    <i class="Hui-iconfont">&#xe67f;</i> 首页
    <span class="c-gray en">&gt;</span> 友链管理
    <span class="c-gray en">&gt;</span> 友链列表
    <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px"
       href="javascript:location.replace(location.href);" title="刷新">
        <i class="Hui-iconfont">&#xe68f;</i>
    </a>
</nav>
<!--/面包屑-->

<div class="page-container">

    <div class="cl pd-5 bg-1 bk-gray mt-20">
        <span class="l">
            <a href="javascript:;" class="btn btn-danger f-btn-delall" data-url="{:url('delall')}">
                <i class="Hui-iconfont">&#xe6e2;</i> 批量删除
            </a>
            <a href="{:url('backup')}" class="btn btn-primary">
                <i class="Hui-iconfont">&#xe600;</i> 备份数据
            </a>
        </span>
    </div>

    <table class="table table-border table-bg">
        <form id="f-table-form" method="post">
        <thead>
        <tr>
            <th width="50">
                <label for="f-check-all">全选</label>
                <input type="checkbox" id="f-check-all"/>
            </th>
            <th>文件名</th>
            <th>创建时间</th>
            <th>文件大小</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        {volist name="list" id="item"}
        <tr>
            <th>
                <input type="checkbox" class="f-check-item" name="check_ids[]" value="{$item.name}"/>
            </th>
            <td>{$item.name}</td>
            <td>{$item.create_time|date="Y-m-d H:i:s",###}</td>
            <td>{$item.size/1024|intval} KB</td>
            <td>
                <a class="btn btn-link" href="{:url('download',['path'=>$item['name']])}" target="_blank">点击下载</a>
                <a class="btn btn-link" href="{:url('email',['path'=>$item['name']])}">发到邮箱</a>
                <a class="btn btn-danger" href="{:url('delete',['path'=>$item['name']])}">删除</a>
            </td>
        </tr>
        {/volist}
        </tbody>
        </form>
    </table>
</div>

{include file="public_tpl/script"/}
</body>
</html>